
// if(process.env.NODE_ENV == 'production'){
//     var host = window.location.host;
//     var site1= "www.tqcaifu.com";
//     var site2= "m.tqcaifu.com";
//     console.log(host)
//     if (host!=site1 || host!=site2){
//         alert(window.location.host+':为非法镜像网站，为了您的安全正在带您回到原网站');
//         location.href='http://'+site1;
//     }
// }

if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
    var href = window.location.href
    var str1 = href.replace('www', 'm');
    window.location.href = str1; 
}
